package com.bridgeintelligent.tag.mapper;

import com.bridgeintelligent.tag.bulkload.api.IndexNameInfo;
import com.bridgeintelligent.tag.bulkload.service.batch.BatchDimFreeDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by JackCheung on 2019/9/23 2:22 AM.
 */
@Mapper
public interface BatchDimFreeMapper {

    /**
     * 查询审批通过的在有效期内的自定义标签
     *
     * @param time
     * @return
     */
    List<BatchDimFreeDto> dimList(@Param("time") String time, @Param("theme_id") String themeId);

    /**
     * //更新是否有数据跑批状态
     *
     * @param dimId
     * @param isDataRunning
     */
    void updateDimDataRunning(@Param("dim_id") String dimId, @Param("is_data_runnning") boolean isDataRunning,
                              @Param("data_state") String dataState);

    /**
     * 根据索引名获取主题和类型
     *
     * @param index
     * @return
     */
    IndexNameInfo getIndexNameInfoByIndex(String index);

}
